<?php
//본 파일은 코딩이 너무 복잡해져서 예제용 이미지 링크를 따로 빼낸 것으로써 추후에 이 파일 대신 배열로 처리된 진짜 썸네일 링크로 대체하면 된다.
?>

<!-- Sample gallery mini - Textures (Preset) -->
<div class="photo_frame image thumb_mi2_1"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b1.jpg" /></div>
<div class="photo_frame image thumb_mi2_2"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b2.jpg" /></div>
<div class="photo_frame image thumb_mi2_3"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b3.jpg" /></div>
<div class="photo_frame image thumb_mi2_4"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b4.jpg" /></div>
<div class="photo_frame image thumb_mi2_5"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b5.jpg" /></div>
<div class="photo_frame image thumb_mi2_6"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b6.jpg" /></div>
<div class="photo_frame image thumb_mi2_7"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b7.jpg" /></div>
<div class="photo_frame image thumb_mi2_8"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b8.jpg" /></div>
<div class="photo_frame image thumb_mi2_1"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b1.jpg" /></div>
<div class="photo_frame image thumb_mi2_2"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b2.jpg" /></div>
<div class="photo_frame image thumb_mi2_3"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b3.jpg" /></div>
<div class="photo_frame image thumb_mi2_4"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b4.jpg" /></div>
<div class="photo_frame image thumb_mi2_5"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b5.jpg" /></div>
<div class="photo_frame image thumb_mi2_6"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b6.jpg" /></div>
<div class="photo_frame image thumb_mi2_7"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b7.jpg" /></div>
<div class="photo_frame image thumb_mi2_8"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b8.jpg" /></div>
<div class="photo_frame image thumb_mi2_1"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b1.jpg" /></div>
<div class="photo_frame image thumb_mi2_2"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b2.jpg" /></div>
<div class="photo_frame image thumb_mi2_3"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b3.jpg" /></div>
<div class="photo_frame image thumb_mi2_4"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b4.jpg" /></div>
<div class="photo_frame image thumb_mi2_5"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b5.jpg" /></div>
<div class="photo_frame image thumb_mi2_6"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b6.jpg" /></div>
<div class="photo_frame image thumb_mi2_7"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b7.jpg" /></div>
<div class="photo_frame image thumb_mi2_8"><img data-lazy="../assets/book/editor/item_bg_pics/thumb_b8.jpg" /></div>

<!-- Thumbnail button event -->
<script type="text/javascript">
    $(document).ready(function() {
        $('.thumb_mi2_1').click(function() {
            $('.btn_item3').attr({'src': '../assets/book/editor/item_bg_pics/pic_b1.jpg'});
            $('.btn_item3').css({'background-image': 'url(../assets/book/editor/item_bg_pics/pic_b1.jpg)'});
        });
        $('.thumb_mi2_2').click(function() {
            $('.btn_item3').attr({'src': '../assets/book/editor/item_bg_pics/pic_b2.jpg'});
            $('.btn_item3').css({'background-image': 'url(../assets/book/editor/item_bg_pics/pic_b2.jpg)'});
        });
        $('.thumb_mi2_3').click(function() {
            $('.btn_item3').attr({'src': '../assets/book/editor/item_bg_pics/pic_b3.jpg'});
            $('.btn_item3').css({'background-image': 'url(../assets/book/editor/item_bg_pics/pic_b3.jpg)'});
        });
        $('.thumb_mi2_4').click(function() {
            $('.btn_item3').attr({'src': '../assets/book/editor/item_bg_pics/pic_b4.jpg'});
            $('.btn_item3').css({'background-image': 'url(../assets/book/editor/item_bg_pics/pic_b4.jpg)'});
        });
        $('.thumb_mi2_5').click(function() {
            $('.btn_item3').attr({'src': '../assets/book/editor/item_bg_pics/pic_b5.jpg'});
            $('.btn_item3').css({'background-image': 'url(../assets/book/editor/item_bg_pics/pic_b5.jpg)'});
        });
        $('.thumb_mi2_6').click(function() {
            $('.btn_item3').attr({'src': '../assets/book/editor/item_bg_pics/pic_b6.jpg'});
            $('.btn_item3').css({'background-image': 'url(../assets/book/editor/item_bg_pics/pic_b6.jpg)'});
        });
        $('.thumb_mi2_7').click(function() {
            $('.btn_item3').attr({'src': '../assets/book/editor/item_bg_pics/pic_b7.jpg'});
            $('.btn_item3').css({'background-image': 'url(../assets/book/editor/item_bg_pics/pic_b7.jpg)'});
        });
        $('.thumb_mi2_8').click(function() {
            $('.btn_item3').attr({'src': '../assets/book/editor/item_bg_pics/pic_b8.png'});
            $('.btn_item3').css({'background-image': 'url(../assets/book/editor/item_bg_pics/pic_b8.jpg)'});
        });
    });
</script>

<?php ?>